package model

// UmsMemberLevel 会员等级表
type UmsMemberLevel struct {
	ID                    int64   `json:"id" gorm:"id"`
	Name                  string  `json:"name" gorm:"name"`
	GrowthPoint           int64   `json:"growthPoint" gorm:"growth_point"`
	DefaultStatus         int64   `json:"defaultStatus" gorm:"default_status"`                  // 是否为默认等级：0->不是；1->是
	FreeFreightPoint      float64 `json:"freeFreightPoint" gorm:"free_freight_point"`           // 免运费标准
	CommentGrowthPoint    int64   `json:"commentGrowthPoint" gorm:"comment_growth_point"`       // 每次评价获取的成长值
	PriviledgeFreeFreight int64   `json:"priviledgeFreeFreight" gorm:"priviledge_free_freight"` // 是否有免邮特权
	PriviledgeSignIn      int64   `json:"priviledgeSignIn" gorm:"priviledge_sign_in"`           // 是否有签到特权
	PriviledgeComment     int64   `json:"priviledgeComment" gorm:"priviledge_comment"`          // 是否有评论获奖励特权
	PriviledgePromotion   int64   `json:"priviledgePromotion" gorm:"priviledge_promotion"`      // 是否有专享活动特权
	PriviledgeMemberPrice int64   `json:"priviledgeMemberPrice" gorm:"priviledge_member_price"` // 是否有会员价格特权
	PriviledgeBirthday    int64   `json:"priviledgeBirthday" gorm:"priviledge_birthday"`        // 是否有生日特权
	Note                  string  `json:"note" gorm:"note"`
}

// TableName 表名称
func (*UmsMemberLevel) TableName() string {
	return "ums_member_level"
}
